//
//  KATTableCell.h
//  KATFramework
//
//  Created by Kantice on 15/8/5.
//  Copyright (c) 2015年 KatApp. All rights reserved.
//  列表单元

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "KATTableCellData.h"
#import "KATButton.h"
#import "KATLabel.h"



@class KATTableView;

@interface KATTableCell : UIView


#pragma -mark 属性

///所属的列表
@property(nonatomic,assign) KATTableView *tableView;


#pragma -mark 携带值

///类型
@property(nonatomic,assign) int type;

///编号
@property(nonatomic,assign) int num;

///int值
@property(nonatomic,assign) long long index;

///double值
@property(nonatomic,assign) double value;

///字符串值
@property(nonatomic,copy) NSString *message;

///data值
@property(nonatomic,retain) KATTableCellData *data;

///是否在高速状态
@property(nonatomic,assign) BOOL isHighSpeed;

///移动时间（每像素）
@property(nonatomic,assign) float movingTime;

///状态
@property(nonatomic,assign) int state;

///是否为点击色
@property(nonatomic,assign) BOOL isTapedColor;


#pragma -mark 控件

///图片控件
@property(nonatomic,retain) UIImageView *image;

///图片控件2
@property(nonatomic,retain) UIImageView *image2;

///图片控件3
@property(nonatomic,retain) UIImageView *image3;

///标题
@property(nonatomic,retain) UILabel *title;

///内容
@property(nonatomic,retain) UILabel *content;

///标签1
@property(nonatomic,retain) UILabel *label1;

///标签2
@property(nonatomic,retain) UILabel *label2;

///标签3
@property(nonatomic,retain) UILabel *label3;

///标签4
@property(nonatomic,retain) UILabel *label4;

///标签5
@property(nonatomic,retain) UILabel *label5;

///textView
@property(nonatomic,retain) UITextView *text;

///徽标
@property(nonatomic,retain) UILabel *badge;

///富文本标题
@property(nonatomic,retain) KATLabel *richTitle;

///富文本内容
@property(nonatomic,retain) KATLabel *richContent;

///富文本标签
@property(nonatomic,retain) KATLabel *richLabel;


#pragma -mark 层

///背景层
@property(nonatomic,retain) UIView *backLayer;

///中间层
@property(nonatomic,retain) UIView *midLayer;

///表层
@property(nonatomic,retain) UIView *faceLayer;


#pragma -mark 按钮

///按钮1
@property(nonatomic,retain) KATButton *button1;

///按钮2
@property(nonatomic,retain) KATButton *button2;

///按钮3
@property(nonatomic,retain) KATButton *button3;

///特殊按钮
@property(nonatomic,retain) KATButton *spButton;

///背面按钮1
@property(nonatomic,retain) KATButton *backButton1;

///背面按钮2
@property(nonatomic,retain) KATButton *backButton2;

///背面按钮3
@property(nonatomic,retain) KATButton *backButton3;

///背面按钮4
@property(nonatomic,retain) KATButton *backButton4;

///背面按钮5
@property(nonatomic,retain) KATButton *backButton5;

///背面按钮6
@property(nonatomic,retain) KATButton *backButton6;

///背面按钮7
@property(nonatomic,retain) KATButton *backButton7;

///背面标签
@property(nonatomic,retain) UILabel *backLabel;


#pragma -mark 分割线

///分割线1
@property(nonatomic,retain) UIView *line1;

///分割线2
@property(nonatomic,retain) UIView *line2;


#pragma -mark

///获取实例
+ (instancetype)cell;


#pragma -mark 对象方法

///左移
- (void)moveLeftWithDistance:(double)distance andAnimated:(BOOL)animated;

///右移
- (void)moveRightWithDistance:(double)distance andAnimated:(BOOL)animated;

///取消移动，回到原位
- (void)backToPositionWithAnimated:(BOOL)animated;


///描述
- (NSString *)description;

///释放内存
- (void)dealloc;



@end


